package com.kymatrix.mpo.plus.bpm.server.model.entity.definition;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kymatrix.mpo.plus.common.business.common.BaseTenantEntity;
import com.kymatrix.mpo.plus.common.mybatisplus.type.JsonLongSetTypeHandler;
import java.util.Set;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

/**
 * BPM 用户组
 */
@TableName(value = "t_bpm_user_group", autoResultMap = true)
@Data
@Accessors(chain=true)
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class BpmUserGroupEntity extends BaseTenantEntity {

    /**
     * 组名
     */
    @TableField("name")
    private String name;
    /**
     * 描述
     */
    @TableField("description")
    private String description;
    /**
     * 状态
     * {@link com.kymatrix.mpo.plus.common.enums.EnableTypeEnum}
     */
    @TableField("status")
    private String status;
    /**
     * 成员用户编号数组
     */
    @TableField(value = "user_ids", typeHandler = JsonLongSetTypeHandler.class)
    private Set<String> userIds;

}
